const express = require('express')
const path = require('path')
const ejs = require('ejs')
const app = express()
//设置ejs引擎
app.set('view engine','ejs')
//将public共享
app.use('/public',express.static(path.join(__dirname,'public')))

app.get('/',(req,res)=>{
    console.log('assd')
})
app.listen(300,()=>{
    console.log('服务已启动')
})